import type { RouteRecordRaw } from "vue-router";
import HomeView from "../views/HomeView.vue";
import { createWebHistory, createRouter } from "vue-router";
const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "home",
    component: HomeView,
    meta: {
      parentName: 'material-app',
    },
  },
  {
    path: "/about",
    name: "about",
    component: () => import("@/views/AboutView.vue"),
    meta: {
      parentName: 'material-app',
    },
  },
];

const iCreateRouter = createRouter.bind(null, {
  routes,
  history: createWebHistory(window.__POWERED_BY_QIANKUN__ ? '/material' : '/'),
})

export default iCreateRouter;
